package cn.tuling.listener;

import org.springframework.boot.availability.AvailabilityChangeEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
public class AvailabilityChangeEventListener {

    @EventListener(AvailabilityChangeEvent.class)
    public void test(AvailabilityChangeEvent event) {
        System.out.println("AvailabilityChangeEvent 监听器");
    }
}
